import express from 'express';
import controller from './controller';
import { authorizeHandlerNormal, authorizeHandleAdmin } from '../../middlewares/authorize';
// 定义路由，使用鉴权中间件
export default express.Router()
  .get('/get', authorizeHandlerNormal, controller.get)
  .post('/add', authorizeHandleAdmin, controller.add)
  .post('/update', authorizeHandleAdmin, controller.update);